﻿Imports TepcelDominio
Imports TepcelDAL
Public Class EmpresaBL
    Private EmpresaDAL As EmpresaDAL
    Public Sub New()
        EmpresaDAL = New EmpresaDAL
    End Sub
    Public Function NuevoEmpresa(ByVal Empresa As Empresa) As String
        Return EmpresaDAL.NuevoEmpresa(Empresa)
    End Function

    Public Function GetAllFromEmpresa() As List(Of Empresa)
        Return EmpresaDAL.GetAllFromEmpresa()
    End Function

    Public Function SearchFromEmpresa(ByVal texto As String) As List(Of Empresa)
        Return EmpresaDAL.SearchFromEmpresa(texto)
    End Function

    Public Function DeleteEmpresa(ByVal codigoEmpresa As String) As Boolean
        Return EmpresaDAL.DeleteEmpresa(codigoEmpresa)
    End Function
End Class
